Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サムネイル画像の表示を修正 #4504

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

Pugma
Copy link
Contributor

@Pugma Pugma commented Jan 27, 2025

fix #4502

やったこと

  • メッセージの画像のサムネイルを表示するコンポーネントが警告を出していたのを修正 #4391 の変更により埋め込まれていたバグの修正
    • width の指定されていない flex 扱いの div タブ内部で flex-shrink: 0; が適用されていたのが今回の原因だと考えました
    • そのため、 div を使わなくても実装できるように CSS の書く位置を変更しました
    • flex-shrink: 0; 自体あまり書かなくてもいいのかな〜とは思ったので、ここはご意見を伺いたいです
  • :not(:last-child) を使って適用されていた margin を、 gap に置き換えることもしました

@Pugma Pugma requested a review from nokhnaton January 27, 2025 02:47
Copy link

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes missing coverage. Please review.

Project coverage is 8.82%. Comparing base (dc04496) to head (6aaad0c).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
...n/MainView/MessageElement/MessageFileListImage.vue 0.00% 19 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #4504   +/-   ##
======================================
  Coverage    8.82%   8.82%           
======================================
  Files         670     670           
  Lines       29448   29445    -3     
  Branches      522     522           
======================================
  Hits         2599    2599           
+ Misses      26843   26840    -3     
  Partials        6       6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nokhnaton nokhnaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良さそう

@nokhnaton nokhnaton merged commit 834d99d into master Jan 27, 2025
11 of 12 checks passed
@nokhnaton nokhnaton deleted the fix/displayPicture branch January 27, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

画面幅が小さい時に画像が見切れる
2 participants